package com.lys.java8.lambdaSample;

interface Converter {
	Integer convert(String form);
}
public class LambdaMethodReffer {

	public static void main(String[] args) {
		
//		Converter converter = (form) -> Integer.valueOf(form);
//		
//		Integer val = converter.convert("12");
//		System.out.println(val);
		
//		Converter converter2 = Integer::valueOf;
//		Integer val2 = converter2.convert("12");
//		System.out.println(val2);
		
		Converter converter3 = "abc"::indexOf;
		
	}

}
